<?php 
class product_plugin_images extends abstract_product_plugin {
	
    public function getProductImages($product_id) {
        $query = $this->pdo->prepare("SELECT * FROM " . $this->db_prefix . "product_image 
            WHERE product_id = :product_id 
            ORDER BY sort_order ASC");

        $query->execute(array(':product_id' => $product_id));

        return $query->fetchAll(PDO::FETCH_ASSOC);
    }
}
